Fixed a semantical error of horizontal and vertical.