Fixed a small resizing bug