Fixed Entity Registration access the main class