Fix reversed direction mappings.