fix issue where equality could not be properly checked if not including id in attributes on main table while including