register bugfix