fixed error in cost-sensitive classification