fixed some bugs with creating/editing goals