fixed a minor bug that horizontal mode has...

has incorrect number of heights