fixed bug in code for issuing items