Corrected build replace sequence