Fixed issue with --self-update