bug fixing false var referecen