Fix bug in upstream updates