Fixed #inventory misalignment