#874 Fixes no rebuild

I introduced this trying to fix another one. This should fix the bug but more work needs to be done. We are building way to much.