Fix inventory bug.