Fixed some bugs parent child bugs.

Signed-off-by: Denis Dik <denis.dik@hs-furtwangen.de>