fix error order of the require files