fix that stupid update bug