fix problem with first time registration