Fixed an uninit-memory-ref bug