fix request infinite loop