Fix for missing end on conditional.