bugfix: Memory usage is now computed properly