fixed a bug with pins when users are deleted