Imported brace fix from C version