Fixed import sequence going out of order when doing nested importing.