Removed too early cleaning of relationships information on transaction

This will fix #914