I figured out the problem and that was the hosts table with all the MAC addresses was jacked so I created a new one and it now working fine. I appreciate you for helping me and i never thought of checking if the task was generated that way.