debug infinite loop when return request