bugfix for crash on closest relation update with only one object