fixed rounding error on level calculation