Fix compile sequence issue