Fix get_by_object. Whoops.