Fix android bugs.