Fixed tasks prototype issue