fixing error on slave at end of run