Removed unused varible which was causing a crash in the way I was using it
merging pull request 2