map generating fix