Fix shop items not correctly detected from Lua.