fix bugs of view