dir:vertical fix bug