errors in view helper