Fix reversed logic with left and right