fixing logic error in executethis to clear errors that were popping up