fixed a bug in pull_outwards

fixed a bug in pull_outwards