fix pair minimal generation