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

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