Fixed a small issue with a reference method for comparing itemstacks