fix for weird map distances bug