Fixed a bug that caused duplication of a lot of PSMs