What happen if you change your High & red definition with
Code:
Red         var LATB.5
Green       var LATB.4