Correct heightmaps generation