fix bug with views cache