fix digger bug of stop digging if current class is an UI one