fix npe getPeak