fix build order bug