You can fix ungrounded outlets by rewiring the electrical circuit or installing GFCI protection at the outlet or circuit breaker. Rewiring is the only option that will ground the outlet safely.