fix a private method error