Fix cancel button for new tasks.