fixed a potential memory leak when reusing mobike task