fixing map generator, small fixes related to it