If your coconut filling didn't firm up in the refrigerator, then you didn't cook it for long enough on the stove. Be sure you bring it to a boil (slow thick bubbles) and continue to cook it for two minutes longer to fully activate the corn starch. Also, be sure you're using full fat coconut milk, not light coconut milk, which is too thin and watery.