fixed bug in cvar
fixed build file