Fix prepare script