Correcting unnecessary braces error