Semantic bug in singleton method fixed