Register bugfix