fix error AntPhotoRestExtension