Fixing error with views helper.