Updated fill to allow replaces to to undone