fix row span bug