Fix public registration problem.