registers bug fix