fixed offline bug, hopefully made the load time much much shorter