Fixed condition cb_ to only call when parent is null