[#1078] fix for before_view with cached dataset