fixing resurrect items bug