fix collection event emission and emit on fileObj, too