Fix for #2549

Fixed typo in runWithParams