Fixed a bug where horizontal lines were not being drawn due to an incorrect function reference.