fixed a bug with compile yield