Fix: not working if no function in views.