fixed guide generation from horizontal lines