fixed karma logic