Bug fixed where ordering of thang names becomes undefined sometimes