Fixed some register errors generated by changes over the database