Cleaning master psid file