fix the bug of repeated requests