- fixing the crash on removing view controller