Remove extra clause that refers to undefined variable