Fixed the automated registration