Fix for edit groups relations