fix issue on load (missed due to test environment globals)