Fix uninitialized variable bug. Thanks to @Benjie.