Fix error in refund method