Bug fix for adding item multiple times