Fixed missing if