Relative api endpoint bug fix.