fixed bug in isMapped