fixed bug in updates