fixed bug in views, caught by unit tests