added band aid for error (counter was larger than grid contents - weird)