Sort:  

thank you for pointing that out... stupid coding mistake meant subsequent runs weren't working properly.