Taking care of const

Signed-off-by: Kohei Takahashi <flast@flast.jp>