If the dough rose before frying, then most likely the dough was over proofed prior to hitting the oil. The dough, even when cold, should feel light and airy. It should give when touched but retain its shape. If the dough did not rise prior to frying, then the yeast was most likely dead or old.