fix terrain picking bug