Fix unknown variables that were breaking compile