fix serialzation bug. break compatibility.