fix(giveitem): infinite loop