fixed tasks with offset 0.0
fixed compiler warning