fixed l/r bug