Fixed Bug Where Window Resizing does not work as expected!