fix some dist errors