fix wrong shift direction