fix const type