Fixed a bug that was caused by choosing "paid on" as status for 1st element.
The first id_paidon wasn't indexed and consequently the value wasn't loaded into DB because
it wasn't load into the JSON.