fix a crash on android