fixed TR problem, added check in CheckLayers input csv