fixing dist errors