bugfix comment and reg