bug fix for the run worker when deploying on apache