fix bug in RBFS.