Fixed a few compile warnings for bp_staged method.