properly fix class braces next to declaration