fix bug in add-rel