Not sure what I was trying to do here, it's just a silly mistake. I can refactor this after you go through the style's code in loadKML.