Fix wrongly used if..