fixed bug with views