fixed small integer division bug for with empty rows will result in height 0