fixed the # variables bug