options.params error fixed