Fix load-order bug when requiring