Fix the view bugs.