Fixed bugs with views handler.