Fixed bug with wrong printing  id in afs file