fix production flag.