Fixed the bug for Nexus 5 photo crashing bug