fix condition for mark as paid