fix views saving