Android: fix native crash