Fix deprication warnings in vote model