Fix error on new task form page