fix dtection issue