Fixed a const bug from last commit.