fixed bug where import type change not picked up properly