Fixed a bug while displaying nodes when only one exists