Row clearing logic implemented correctly.