fixed bug in views