Bug: Memory wrong calculated