fixed bug for pins and users after delete