Crash fix.

Fix crash after getting photo.