fixed param wrapping bug