Fix check for refunded status