fix bug for photos manage