Fix views bug