fix prettyphoto bug