Fix a bug when selecting battle items