fixing singleton constructor access