Fix compliation error with const parameter