Fix bug for scp