resize bugfix