prevent crash when choose photo is tapped twice in succession