Fixed a small potential segfault bug.