Fix composer.json according to validity check.