fix trash variable substitution