fixed poll js bug