fix crash on back to take picture view