Removed unused varible which was causing a crash in the way I was using it