Avoid setting negative votes value

During tests noticed some alerts thrown in the code and applied a fix to
avoid this as well