fix bug, stopped should be initialized