fixing bug where view controller freaked out when re-appearing