fix nasty bug in tasks and jobs, causing too frequent reloading of page