Fix None reference bug.