fix when running puppet from the background