Fixed error in awarding karma medals