Fix bug introduce by #138

Error caused by a private method call