bugfix: size was not updated