Fix undefined pollType

ref #22