fix the build sequence