fixed a minir bug