Fix const bug