fixed a bug related to a pin whose user was deleted