fixed calculation of karma when committed