fixed creation of dupliciate packages during scan