Fixed $result typo