Fix misprediction if-statement