terminal payment fix