fix some resizing bug

or whatever