production script fix