Fix #42: limit minShapeSize to 1