Added some strictness to mapCoord to avoid stack overflow