fixes offline check