Keep Public and Private Method Name the Same&Fix a Code Error

According to DirectXMan12's comment.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>