bug fix

Due to empty field at start the aid,,eid andgid were off by one field