fix old android application crashes