Fix loading correct env