fix broken upstream check