Fix inventory macro