Fixed endorsement bug