Fix self-updating issue