fix onStart/onStop method issue