Fix public registration view crash