Fixed the exc bad access at registration.