fixed error with pull_req func