Fix memoryview error