Fix bug in PhotoManipulationActivity.