MRO F7 sometime loads wrong compass settings

Hi, i have an MRO F7 running V4.0.5 and on when booting 50% of the time it loads wrong settings for the compass, all other settings are identical though.

As you can see the issue is not, that mutiple compasses are configured

wrong:
COMPASS_OFS_X,159.3608
COMPASS_OFS_Y,-297.7026
COMPASS_OFS_Z,47.52293
COMPASS_OFS2_X,0
COMPASS_OFS2_Y,0
COMPASS_OFS2_Z,0
COMPASS_OFS3_X,0
COMPASS_OFS3_Y,0
COMPASS_OFS3_Z,0
COMPASS_OPTIONS,0
COMPASS_ORIENT,25
COMPASS_ORIENT2,0
COMPASS_ORIENT3,0

correct:
COMPASS_OFS_X,-164.0744
COMPASS_OFS_Y,297.0486
COMPASS_OFS_Z,-51.94843
COMPASS_OFS2_X,0
COMPASS_OFS2_Y,0
COMPASS_OFS2_Z,0
COMPASS_OFS3_X,0
COMPASS_OFS3_Y,0
COMPASS_OFS3_Z,0
COMPASS_OPTIONS,0
COMPASS_ORIENT,18

Does anyone have an idea where it gets the alternate settings from ?
Or is this a bug that has been now fixed with the recent release ?
Thanks,
Daniel

This is maybee fixed in Arducopter 4.0.7.

Thanks, is it related to the restore of parameters ?
I would like to reproduce the issue if possible or understand what caused because it only happened on one system so far, i wonder if the other issues might also be affected