Fixed gtk warning when creating new task.