fix bug with relation bounds