Fix error when opened new or root nodes