Prevent duplicate nodes from being drawn