Fix bug with AsyncTask on Android