fix coefficient of partial determination bug