Fix quotes balancing