Try to fix const-cast warning.