It's probably overcooked. It's actually better to undercook the cod a bit than overcook it. Exactly for this reason. Next time, try cooking for less time.