Fixed environment delta code