fixed parent invocation and memory buffer overrun