fix bug that options.trigger can't be added correctly