Bugfix in getRealChildren