fixed bug regarding children option