Fixes children serialization. fix #28