Fix error while trash may not be released