fixed register-width check