fix null pointer on stop