fixed updating depending on version