fixed a bug that caused android to crash