work on the bug for saving datas error timout without ending properly