fix the annoying error on package scan