fix deploys to environments