Fix uninitialized input bug.