Resize() bugfix