fixex bug in BQ library