Fixed window.Views() bug

I was working on save_all and i realized that there is a problem with window returning the views. I wrote a test for that so others can see but i don't get why this is happening. why copy doesn't change the ret length