Fix refresh limit bug