fixing task generation