Fix cs and an undefined variable

Oh, thanks !