fixed silly computation bug