fixed checkLimit wrongly returns true if maxSize > used fixes #776
Merge pull request #797 from gurbuzali/fix/3.x/issue776

fixed checkLimit wrongly returns true if maxSize > used fixes #776