Fix error in end-of-import wrapup