Fixed a big error in `pull` function.