fixed no network/rotation bug