fix braces

put braces in the wrong place