fix some detection issues