Minor bug fix in triggerSelector