This can happen if there is too much moisture in the batter. Ensure that you have blotted the grated courgettes well with paper towels before adding them to the batter.