fix trash check