fix typo and removed LegacyCamera to fix compile issues