fix petsum bug