fix for photos pages