fixed a bug with the new automatic build generation