fix Detection