fix to stop refresh