fixes an issue with incorrect direction preference in view helper