fix cal/rawBg bug
fix cal/rawBg bugs, and scale by sgv/filtered ratio when available