Fix issue not assigning member variables at startup which causes a null ...

Fixes issue with null pointer when stop is called.