Fix bin/api.php