Fix a bug of previous fix. Vertical split should only be made when the
space is wide enough.