leger bug fix