Fixed auto-registration for the app