Fix bug with VariantToPosition

Credits assassina