Finally no error.Handled re-entered rows and cols myself without tinkering with main code.