fix to_param for nestled params