fixed bug in photo