Fix for Lua Item reference tracking.