fix a bug in distance map