Fix synthax error causing poll not to be created