Fix bug with refund using the wrong const