It most likely just needed to be whisked more so the fat content breaks down. Once it's done heating, pour it through a strainer to catch the lumps.