Fixing rerendering of views