fixing a conditional statement in executethis that caused a console error