Attempt (unsuccessfull) to fix params_to_doubles