Applied patch to avoid error when running update.sh