Fixed possible IndexSizeError

When board canvas is very small.