fixed jar detection