Fix calculating the map lead address
Fix calculating character number