fix apply_pssm