vertical/horizontal line drawing fix