fix bug in apull method