I inspected the problem further. If after a configuration changes I do a reload the system comes up normally with the correct configuration saved. If the switch is turn off by detaching the power, when it comes up this happens:
Dcmd Database is corrupted. Hence, clearing the database.
2018/09/26-09:55:24, [DCM-3053], 1979, SW/0 | Active, INFO, VDX6740T-1G, Dcmd database corruption was detected. The system will startup with the default configuration for this database.
and the configuration is lost because the default config is loaded up