fix bugs on some view controllers