If it didn't set, then it's probably because the topping didn't get enough time in the oven, or you cut into it while it was still too warm. Try popping it into the oven to bake longer, and letting it cool completely before cutting into it.