fix handle error message for creating children