Fix botched if