fixed photo exception