Fixed some view's bugs.