Fix inventory not restoring