Fix software detection