fix constant refresh