Fixed compile order issue