fixed issue with updating