Fixed bug in meta.depths, thermo.depth for loop