fix environments