Corrected some strange copy/paste in window.cpp