Fixed a few leaks when creating new task