Fixed a bug where wrong itemids where used