fix deploying environment