fix views scope bug