Fixing PS_TYPE assignment