diff --git a/ethdb/database_test.go b/ethdb/database_test.go
index 4740cdaedd66fe496f0341480b91dbe55c259f24..5e4a3ca34a8e07a4d696f5456d36cb41421c37b6 100644
--- a/ethdb/database_test.go
+++ b/ethdb/database_test.go
@@ -94,6 +94,21 @@ func testPutGet(db ethdb.Database, t *testing.T) {
 		}
 	}
 
+	for _, v := range test_values {
+		orig, err := db.Get([]byte(v))
+		if err != nil {
+			t.Fatalf("get failed: %v", err)
+		}
+		orig[0] = byte(0xff)
+		data, err := db.Get([]byte(v))
+		if err != nil {
+			t.Fatalf("get failed: %v", err)
+		}
+		if !bytes.Equal(data, []byte("?")) {
+			t.Fatalf("get returned wrong result, got %q expected ?", string(data))
+		}
+	}
+
 	for _, v := range test_values {
 		err := db.Delete([]byte(v))
 		if err != nil {
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go
index a2ee2f2ccd22548819a79eed9e12ae863d79d7b5..11b093724860f9f4eaad0692dd7548798198ca18 100644
--- a/ethdb/memory_database.go
+++ b/ethdb/memory_database.go
@@ -50,7 +50,7 @@ func (db *MemDatabase) Get(key []byte) ([]byte, error) {
 	defer db.lock.RUnlock()
 
 	if entry, ok := db.db[string(key)]; ok {
-		return entry, nil
+		return common.CopyBytes(entry), nil
 	}
 	return nil, errors.New("not found")
 }