Fix refresh error