fix level counter