Fixed compilation error on view