I found a solution with a power shut-down switch. In my previous case, I didn't use it, and I disconnect the power at power supply end. Now, I placed a shut-down switch (SPST DIP Switch) on the power line on my circuit board. When I am done, firstly, I switch off the power with this switch, then I close the power supply. With this way, I keep my codes.
Thank you guys for your responds!