Fixed bug in row removal