Fix annoying errors where project can only be built every second time