fixing issue with the eager relation idAttribute