Fix a bug that view controller is not removed from parent view controller. They are leaked.