Fixed a bug where the Photo completion handler was called twice