fixed some problems in import_semaphore.