fix trash crash