src: fixed bug with restore views