memory overall usage bug fix