fixed bug which allowed to have duplicates save in postsaveModules

(cherry picked from commit df68c2ab63c6fc431bb49b8267c34ffe521cd06e)