Fixed missing if in conditional.