fix bug in import * hook