bugfix, wrong memory calculation in gui