regenerating map fix (bad, but works)