fix bug in options params.options instead of data.options