fix nondeterministic file require order which caused 'uninitialized constant'