fix issue where exports.next wouldn't add functions to the queue