Fixed regression for dynamic parent

Fixes #1578