bug in update - fixs