Attachement contect-type determination fix