bugfix: memory is not allocated, core dump
bugfix: rt is not counted