more fixes to the code for b-tag systematic error