Fix for inventory getObjectName bug