fixed bps bug