reg check bug fix