Fix view helper factory