fix bug for ThreadWork for crash when run under android 3.0