Fixed self-update issue