safe wiring?

I replaced 2 old receptacles with 2 new ones and then the push-button breaker wouldn't reset. I had placed a ground wire from the metal outlet box to each new receptacle. the boxes already have ground wires from the cable in the wall. The breaker finally reset when I removed the ground wires that I connected from the outlet box to the receptacle. Is this safe?