Fixes vertex mapping when reversing a mesh