Fixed bug where re-builds fail