fixed a bug in bre_bind