Fixed issue of constructing nesting list after performing ajax call.