Fixing production run script bug