Memory consumations fixes.