fixed ruby hook mode braces