Fixed bracketing issue with shift left and shift right