Fixed 'Add Task' dialog bugs