Fix warning due to assignment discarding const qualifier