If your lemon filling isn't thickening, it's likely because you're either not using enough cornstarch or you're cooking it on too high of heat. Be sure to use the amount of cornstarch specified in the recipe and cook on medium heat, constantly whisking until the mixture thickens.