Fix auto_resize behavior
Fix error in window/gui