Fixed None reference bug.