Tidy up confusing error in eeagent