fix duplicate registration