Fix wrongly written inverse logic.