Fixed extra variable declaration breaking everything