Bugfix in mem check when no thresholds used