Fixed issue #1496 about remote import bug