Fixes environments