Remove warnings and fix bne instruction