Revert "raise Memory error"

This reverts commit 05a6fd8fb7b8522b17206d5337d8a862355a2fc4.