fixed a minor bug (was creating referenced itemstacks that disappeared on click)