If they aren’t cooked properly in the middle, you can’t re-bake them once they’ve cooled since the outside will come out dry. Instead, check that a toothpick inserted into the center comes out clean so you can be confident they’re done.