fix spelling mistake
add basic check for map generator