Fix how to get the eid

eid was dead...