Fixed c variable not being global