fix invalid mapping detection