Fix checkvariables