Initialized data structures

Null pointer exception fix