Fixed first empty row bug in vertical layout