fixed deg bug
refixed deg bug