fix poll script