Fix bugs in add/edit trip view controller.