fix issues in formattingContext - 35 failing tests so far