fix lograge setting bug