Don't you need `global $c;` above?