Fix Sigleton error in windows