fixed bug in overitme update function