fix lograge errors