Contacts: fix element close mismatch. Fixes #789