fixed endless recursion in fix_block_styles