fixed public static getInstance for singleton.