bugfix for nonoptimized itemtypes