fixing relation managment with many-to-one relations