delete fix, pack ordering and possible crash fix with id numbers