Fix the removeItem handler