Fixed camera crash when returning to app