Fixed var replace when no vars sent