Registered the wrong class