Fix array typehint
Fix depraced method