[fix] remove undefined variables when displaying an item