I have removed this "fix" as I could not reproduce the error when I reran it without this change.