fixed some photobugs