Fixed bug in unpin.  Reference bit was not getting set.