fix views bug