next resize bugfix