Fix inventory checker script

A variable was named incorrectly