Fixed error when creating an assignment poll. Fixed #1203.