Revert "fixed memoryview error"

This reverts commit ef146b0a2398714eb7bb00c504b188550af95a6a.