Fixed bug in param extension method.