fix noninitiaization that was causing segfault