fixed calculate of remaining karma