fix const error