Correct a condition on frontend