fixed bug for private method.