Replace factor by coefficient