Fix android's console problem