fix bugs on android 2.2