Fixed an issue occurring on some devices when a picture is taken.