Fix error in the singleton implementation.