fix performance issue with task creation (fixes #255)