fixes bug where contrib fraction was doing integer division