Correct bug while performing refund transaction. Working v5.1