Package frequency bug fix