fix build order