created reset_bound_bean() and bug fixes