Fix prepare target.