Fix freeze on startup for android
