fixed memory allocating bug
first launch, many fork bugs fixed