Compatible for older version.
Fix bug in earlier android version.