Main.conf data keep missing after saving

Hi, i need help, i connected my apm2.8 to raspbery pi 3b+ using usb connection. i want to use mavlink-router to forwarding data. but data in main.conf keep missing. i have save it by ctrl + x then Y to save. when i open that file again its still empty