fixed bug with latencyTask

repair the error with the argument latencytask