Remove main class referancing itself.