fixed bug with parent and changed json