Fix a bug on item controller