bugfix for incrementing size