Fix for #2549

Fixed typo in runWithParams (issue #2549)