BF: Add missing end for if statement.