Prevent a bug in photo list.