fixing refresh to not interrupt