Fixing redirect after import issue