fix crash on resume of votingactivity