[SD-852] Fix for the saving scratchpad to session preferences