Fix (2nd attempt): unbind reference entity opened from tableview.