Fix log index with wrong parent controller bug