fixed issue with initial build order