fix GViewController's present & dismiss bug