fixed --check-terrain with --config