fixed 2 bugs/typos found through testing