Fixed unintialized var that was causing problems