patch view controller
fix crashes