fix nan bug when picking up values
update root to v6