fix a bug to prevent wrong nodes/ways in tiles