Fix android flashing bug