fix problem regstration