fixed a few null pointer errors due to lack of initialization.