Fix assertion failture on max_child_size

This fixes the crasher when opening properties.
Merge pull request #202 from City-busz/fix-max-child-size

Fix assertion failture on max_child_size