Fixes "unknown object" bug on nested form