Set poll interval and fix a bug with extension