Remove open if block