fix memoryview warnings