Revert "~ fixed writing/reading bug"

This reverts commit 994b34ced11f38cb21e0501e9369f279fd776441.