Because the base of this dip is mostly mayo, make sure that you're not trying to bake it faster by cranking the heat or cooking it too low in the oven. Mayo will separate if it gets too hot. As well, don't use pre-shredded Parmesan. Pre-shredded cheeses are coated in cornstarch, and you won't get a smooth mixture.