Fixed issue #1098 about remote import