fix weird conditional