Resize bugfix