inheritance problem with repository that tried to register class twice