Fix the valgrind problem by adding const modifier