Remove bug in clearing rows