ImportStage duplicates bug fixed

This should fix once and for all the bug that duplicates transactions on
importstage mode.