a bug when showing photos