Fixed bug with resolve targets in nested nodes