fix const type save issue