fix view shared photos bug