fix views bugs