bugfix: allocate initialized memory in mod example