Fixed check for heightmap