fix row open and close