Fix bug in poll template