fixed crash on return after photo