poll applet fix by mainclain

This fix for the poll applet was proposed by mainclain.
Thanks mainclain.