xbr-lv2-pass1.cg fix and optimization.