This can happen if you remove them from the oven before they’re fully cooked. When baking, never open the oven door until at least 75% of the way through the cooking time unless the recipe specifically tells you to do so (to rotate the pans or baste or whatever). These healthy pumpkin bars can be left alone to bake for the full 30 minutes.