fixed a bug with the rebuild file that I introduced..