Remove wrong if-case.