Fixed update inventory query