fix(controller): inject config on top of existing environment

fixes #2100