horizontal row bug fix