fix packages problem and set scan