some register fixes.