Fix compiler spec sometimes fails by async timing problem