fix view photo bug