fix to auto refresh