[#2407] Fixed const assignment error