fixes completing of an task