Don't cache list of formats for items
Fix item matching condition for commands