Fix pull name function