Fixed the double dereferancing bug.