Fix some gq bugs when tw was set