fix some jig bugs