fixing improper handling of params, relates to #40