Fixed the crash at the end.
Fixed the crash at the end.