Make pull work correctly