Fixing view history