Fixed CPS_NOATTACHMENT flag