fix const in controller