fix config replace on build