bugfix: around reallocation