Quick script generate fix