Small bug in Singleton Pattern