Fixed java detections