fixed uninitialized variables

uninitialized variables gave compilation errors under osx