fix issue with registering fix #80