If this is a top slide safety, when you put it on or take it off do you feel resistance and does it feel as though there is a detent to hold it in each position? If not the spring that puts tension on the safety may be broken or slipped out of place. Just had this happen on a buddies gun, replacing the spring fixed the issue.
WBLDon