fixed error in computation of support