fix problem where duped imports were pasted