Update characterprofile.php

its your own code changing the var if am not mistaking this fixes the issue at hand