Bug fix on empty parents