small fix in s:get_aligned_rows()