Bug fix #405 : clears the sub nodes before trying to build them again