Fix missing { on if condition