Fix invalid variable expansion.