Singleton base class doesn't work