fix bpm_wait_callback