bug fixed: missing emit degree in mapper