Blog id wont restore when loop is empty. Issue fixed!